﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class SumUtils
    {
        private int int1;
        private int int2;
        private string string1;
        private string string2;
        private double double1;
        private double double2;

        public int Int1 { get => int1; set => int1 = value; }
        public int Int2 { get => int2; set => int2 = value; }
        public string String1 { get => string1; set => string1 = value; }
        public string String2 { get => string2; set => string2 = value; }
        public double Double1 { get => double1; set => double1 = value; }
        public double Double2 { get => double2; set => double2 = value; }

        public void sum(int int1,int int2)
        {
            Console.WriteLine(int1 + int2);
        }
        public void sum(double double1, double double2)
        {
            Console.WriteLine(double1 + double2);
        }
        public void sum(string string1, string string2)
        {
            Console.WriteLine(string1 + string2);
        }
        public void sum(int int1)
        {
            int sum = 0;
            for (int i = 1; i < int1; i++)
            {
                sum = sum + i;
            }

            Console.WriteLine(sum);
        }
    }
}
